package com.kikidao.app.testclasses.person;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 7/20/12
 * Time: 5:37 PM
 */
@SuppressWarnings("UnusedDeclaration")
public class Persoana {
    private int id;
    private String nume;

    public Persoana(int id, String nume) {
        this.id = id;
        this.nume = nume;
    }

    public Persoana() {
    }

    public int getId() {
        return id;
    }

    public String getNume() {
        return nume;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setNume(String nume) {
        this.nume = nume;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Persoana persoana = (Persoana) o;

        return id == persoana.id && !(nume != null ? !nume.equals(persoana.nume) : persoana.nume != null);

    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (nume != null ? nume.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Persoana{" +
                "id=" + id +
                ", nume='" + nume + '\'' +
                '}';
    }
}
